Add error and standard logging