Making `record_object` optional