Cleaning up patch