Got all the buttons working (almost pure luck)