Adding function declaration syntax to stop nested function definitions.