CS - Change to logging.