Add error object to callback, add trace1 logging to every function call