Changed the setFilter ref parameters to pointer parameters to allow for NULL passing