Made printer variable a static variable