Added some stats for the error metric (the stats folder in the future
can be used for other stuff).