Working conversion from bcode