Added ability to disable success message
Added error callback