So could you post the full working code?
I would be interested on seeing how it worked.