Updated rest client