I Tried doing something like this yesterday, but something went wrong. However your solution worked so thanks!