Handle undefined callback function