I haven’t done it myself yet, but here are a couple of forum threads that might get you started in the right direction:
(I searched on the word “foil” and limited the search to the “Beyond the Manual” section. Because of the rather generic search term you get a lot of noise, but digging through those results might yield more like these.)