Command for serialising and deserialising collected data.