Could you post the code? I'd like to have a look at it and see if I can't adapt this into my next project.