Increased stack size in order to prevent stack overflow error