Commented the 'print stacktrace' block for a better performance