Implements basic user interface.