Cleanup of logic for SMART logging.