Moved aux functions into newPrint.
Moved another aux function to newPrint.
Removed unused functions.