Add onSuccess callback, because using events becomes unwieldy with multiple calls to the plugin