Refactored preferred_name method