Adding print function