This was existing code, so I haven't checked it. I simply moved it up in the file.