Max file only calculated if report option is true

Closes gh-64.