Main is now working with the parameter file.