Made logging work