Update to use bytearray class.