Added functions for score logging.