Excellent solution. thank you.
Gonna leave the link here incase someone else finds the thread via google: