Change method: try_assign to sync.