Added stack overflow support.