Implemented basic ui and logging.