Fix naming conventions and syntax for temporary functions