Callback works with errors