Move initial device setup into constructor
Replace int64_t counters with custom ByteCounter class