Added support for TPconfig, looking for drive and density. Improved logging and error situations handling.