Updating to use new log functions.