This lecture discusses a framework for scheduling a battery system to provide multiple ancillary services to the grid, focusing on composing power and energy budgets efficiently using prediction intervals. The algorithm aims to maximize revenue while adhering to battery power and energy constraints, validated through experimental data. The integration of primary frequency control and dispatch plans is highlighted, showcasing the ability to efficiently unlock flexibility by leveraging existing technology.