Some schedule query/api functions