Added proto-buf mode and erlang mode.