Implemented UserInterface interface.