Add update function in connector.