Updated _from_bytes() method