Added compile switch on DataLogging include