Batteries as Power Plants