Converted project to use alarm instead of service