This code was really the thing i was looking for the last 5 days :)
Thanks!
Tho there are some stuff that needs to be updated, i know that you've written it abit further up in this comment section but, just let me remind you of what you need to fix :)