Added changes for get and patch methods.