Fixes #7 implement scheduled API