Bits2Bytes and adding set_type