Update minimum refinement function to always read in 3 variables.