Adding print function.