Update print function