Added printer code