Added protocol.rb from 2.0.
Updated version for 2.0.