Added specific logging messages, way to write to file