Added registerIntervalCallback to API