UPDATE: Printing stacktrace in case of error