Added HPF and RR(kinda) sorting.