Proto-bin implementation

Incomplete and mostly not working