Fixing calendar stuff. Successfully adds events now.