Change || to && for alarm check