Update naoLinear.R