Making serial logging work