Added the error and trace implementations.