Added (and tested) resetLocTo for arbitrary locations and parameters.