Added preliminary implementation for stabilization of prediction.