Basic working functionality hacked together with placeholder buttons.