Code I use for tqZ analysis