That's what I get for just copying the code that was already there!