Add NewFromBytes constructor