Seems I should really start thinking rather than just typing away some code and moving to other stuff I'd like to do... :-/ Sorry about the idiocy I've committed.