Refactoring.

Increased stack size to 1 Gb.