Fixed log handler stuff.