ByteFactory improvements