Save max ID. Start working on the AlarmManager