Added sample data logging.