DataLogger: Serialize commands