Further genericized by adding alertString var