First pass at connecting the core functionality to the user interface