Replace LegacyServer with custom master

Using modified version of Trinick's Script_CustomMS