Added master, defined a way to update the metadata for every slave, tested in main