Have a look at this thread here, I give an example file and go into quite some detail…
Hope that helps.