Switched to bytes form bytearray