Configuration file introduced. TPK adapted to use the configuration file.