User type was missing from the function definition