Add error bars function.