Make audit logging work