Adding in log messages