Added public method for changing "warn" method.