The problem is as I said. Hsersetup hangs, I.e. the statement before executes and the statements after don't. If it helps, this is the code:
The first sertxd does it's thing, then everything stops. Weird I know.