More functional metalink code