In order to provide assistance, you will need to provide more information. Please add comments to your code to give us an idea of what is going on already and explain what you are trying to accomplish with your code.
Any additional information you could provide on your workflow will also be beneficial.