Added checks for callbacks and interval option