AlarmManager added.
Merged code