All patches are preserved if the 'keepPatches' option is set true. Patch contributed by Mattijs Janssens