Replace Lookup() with TryGetValue()