Global logger now, also fixed #2