This helped me with a function i been working on for a few days, shot dude
FYI: Your missing the closing bracket :)