Added an option to print to terminal