Merged filterPhenotype and sortPhenotype + Magic Num Removal