Moved logging higher.