Making the most of short-term flexibility in the balancing market