Changing the workflow of tOpt so that it may be used iteratively.