Added missing semicolon to the generated function