Comment out sort for test debugging. Remove old debug print command.