Modified Pare method and added cfgfile.