Fixing 'top' for QueueRanked, comment and debug cleanup