Hi,
Please have a look at this :
I have made is quite some time ago, but it might be similar to yours. You can also cross-link to this topic from there if you want.