Adds back in uout=(aaa+bbb)/2 line accidentally removed