Removed debugging 'puts' statements