Allow for creating default callback function