Note to self: Don't write code at 4AM

Signed-off-by: Ollie <dzineit@live.co.uk>