Added code for plotting prediction errors.