Update mode-connector.rb