Adding print functionality.