Switching Tasks According to Tendril Theory