Added functions to clear callbacks