Added alarmanager code