Change 'filename' to 'fileprefix' to be clearer about what is required.