If you need to check "if (curexp)" it should probably be done at line 676 ?