added logging as a trace.