Added a mthod filteOutDescriptors. Test cases have not been added yet.