Added actual file printing functionality