Initial version of patcher