Tweaking code, creating button array.