Increased stack size to prevent overflow.