Added changes to printout selected master to stdout in slave mode.