Implement basic UserState functionality.