Add some code and document struct.