Fixed implicit global (d'oh!)
'Fixed' whitespace to my preference