Added write MAC to config file