Pretty printing while handling large files