Added stack overflow hook