Here we re-initialize inAThen to 0, to allow nested thens to be the first at queue.