Refactored call to print