Added replSet support;