Added proxy code for handling ismaster