Make audit logging optional