Updated print method