Add AD patches