Correct order of function definitions.
Style fix.