Removed redudntant dict copy.