Now gets the filename as expected.