Put the function definitions above their use.