You're absolutely right, result of not having slept. Will post the right code later in the day.