Added PV-logger code