Enhance custom sync method

Support patch and update methods.