Revised ignore_warning_class to wrapp the function in a way to allow for arguments to be handled externaly