Added checking for the callback_enable variable to allow registering of callbacks