Updated model to handle user attributes.