Make metadata extraction almost work.