Removed printStacktrace.