Fixed sidestreams addition to error vector in Functionvalue and minimize error