Adding a lightweight print function. @9606a60