Added alert method.