You might want to take a look at this post for more information:
Haven’t done it myself, but looks pretty detailed and might send you in the right direction for your project.