Basic structure of app borrowed from mostly built Microscope example.