More writing; changing boxCounter to output interpolated data for visualization