Working implementation of patcher