Port to the new version of SmartPrint