Added ascending/descending switch.