Working on main-slave