Added support for errors and error bars.