Updated history and converted id to unicode for factory calls