Made sure file printing works properly