Added proper log callback.