Added a trace interface.
Added an error interface.