Add document for patched functions