Working code with choose master method and round=1 functionality