Shouldn't have printStackTrace() in production code switch to logging.