Changed mongos to be prototype based