Added old stats code and worked out old stats pipeline for later testing