Added binary encoding