Added REST support.