 
 typealias AlertHandler = DismissBlock
 
-func alertSuccessWithTitle(title: String, andDetail detail: String = String(), closeLabel close: String? = nil, dismissHandler dismiss: AlertHandler? = nil) {
+func alertSuccessWithTitle(title: String, andDetail detail: String = String(), closeLabel close: String? = nil, dismissHandler dismiss: AlertHandler? = nil) -> SCLAlertViewResponder {
 	let duration = close == nil ? 2.5 : 0.0
 	let alert = SCLAlertView()
 	alert.showCloseButton = close != nil

	if let dismiss = dismiss {
		responder.setDismissBlock(dismiss)
	}
}

func alertFailureWithTitle(title: String, andDetail detail: String = String(), closeLabel close: String? = nil, dismissHandler dismiss: AlertHandler? = nil) {
	let duration = close == nil ? 4.0 : 0.0
	let alert = SCLAlertView()
	alert.showCloseButton = close != nil

	if let dismiss = dismiss {
		responder.setDismissBlock(dismiss)
	}

	return responder
}

func alertWaitWithTitle(title: String = NSLocalizedString("Working Hard", comment: "Please wait"), andDetail detail: String = String(), closeButton close: String? = NSLocalizedString("Cancel", comment: "Cancel button label"), dismissHandler dismiss: AlertHandler? = nil) -> SCLAlertViewResponder {
