Added definitions of the error measures.