Move the statement to the correct place.
Corrected function layout.