Flexibility, Investment, and Growth