Creation of patches (need fixes).