Added on success and on error callbacks