Adding patchesToStl utility