Added modify', a strict version of modify.