Handling of AR input data.
Merge remote-tracking branch 'origin/master' into fixing-the-stupid-scaling-problem