Modified to send button data when a button goes high instead