Adding this.context and Thread.backtrace()

Adding this.context and Thread.backtrace()
Indentation should be two spaces, no tabs.