Removed debug cout for join