Added stack trace loggin.