Added finalize.mechanism() =  max matching internally after the mechanism is done.