Add checking of alarm