The change in last commit introduced a problem: we were exiting because when writing CASP TS file we try to parse out the CASP target number from the target tag. Now solved by using a regex for parsing the casp target number.