Added a file that does master and slave