Consider file size when resolving name