Updated for new logging functionality.