Add patch generator