Checks for running off the stack