Modified LoggingChats.java