Similar to the above. Debug logging would be nice.