Optimizing rests

If you have a number of consecutive empty bars, you can replace them with one multiple rest.