You can call it with either a full path or just a filename, which is why filename is changed (see PR description).