Improving the Performance of Multi-Robot Systems by Task Switching