Rudimentary ordering done. PITA. Needs to be better.