Scoping global function... oops.