Improved printToScreen.