Added logging.

Need to sort the logging.properties file though.