Improved logging. works now.