Moved button scan into HRTimer