Change fname to filename.