Rewrote the ReSTClient