Added error checking to new print function