Metadata-dependent AMI

See ohnosequences/statika#73