Fixing syntax for new print function