Fixed some bugs and now it works with multi nodes in multi data center.