Program outputs result to file