Put sorting back in. Commented out testing code.