Switched to new logging functions