I forgot to add that when I tried to set up simpler code with only one array (and also no data passed through), it produced an error because it read the distributed array, RangeVar, as a one dimensional array instead of a two dimensional array.
map(LogLikelihood,DensityVar)
