Managing Losses in Water Distribution Networks