Passed the printer connection around to functions that need it.