Add statistics and spatial output