Added file printing so no longer need to pipe output to file