Added stacktrace to constructor in controller