Dictionary modified to use collection object instead of array