Update: add support for filename (fixes #12).