Created some glue code for the logic and the UI.