Adding domain and main controller