Added backtracing to logging