Thank you! This is not the way how I expected it to be, but it does it's job pretty well for now. I'm going to finetune it and if i have other questions I'll let it know.
@Praveen: As you can see for now my problem is solved. But thank you for you help anyway!