Add error and log capability.