Added error callbacks.