Please tell me if there is another way of doing this, if this is not how you meant it to do.