Syntax fixes in functions.