Fixed a bug that was stopping us from recording the latest data in the agent.
Minor change in the layout of the HTML file.
Optimise the generation of the array of captured output.