Improved work with REST.