Fixed prediction routine.