Changed "function" keyword to "func".