Preparing the master node