Adding patch method.