Support min calculations for 2 and 3 dimensions
Correct file locations