Add explicit amount field to parts of mirrored algs, because undefined doesn't work like 1.