Calendar API almost working