Move parameter loading to loadParametersFile function.