Changed structure of output for historical data