Control of networks