Updated to match XenForo code standards.