Towards Smart Grids