Added setjmp and longjmp, output is probably wrong