Added printStackTrace() to output upon exception.