Added alarm creating method