Stats pipeline changes

Optimisation and addition pipelines added to statistics