Mixture template - added first and last loop expressions