Do this at the top of the function.  Why do it here?