Removed debugging statements from working code.
Added (broken) method for sorting node-pool keys.