Logging. Removed e.printStackTrace() and System.out.println()