Cleaned up calendar API and wrote script to run every morning. Now the script does not need to ask for permission every time it runs