If only I had posted code that worked so that you could refer to it. Hang on... I did!