Pick latest variable in between clauses instead of picking a random one