Changed how buttons are read.