Using latest REST client rather than deprecated one