Added shit to get the GUI buttons to work.