Fix broken file input.

Closes #8