Adding preliminary code to add a new alarm and fetch its ID