Better alarm implementation.