Made the print function inline.