Flexible Charging of Electric Vehicles