Added userType to constructor