Better integration of renewable energy