Minor: seems resource_descriptor is the more 'substantive' argument and thus would be first. Filename is mainly used for messaging output, correct?