Patching as proposed by krames