Added missing 'function' keyword