Parse files only when necessary.

Resolves #16.