If the key isn't specified, use the filename