Update: add support for filename. Closes #12.