Changed statistic gathering to Emit.

Also added XY vectors