Added logic to allow only one Onpress until either off, or timeout