Updated print function interface