Changed routines in UBPatch.pas into methods of a new a static class named TPatcher and updated affected code.