Added a check to see if parameters were passed before running filters and sorters.