Added ability to specify custom duration for success/error methods