Do not use typedef for struct.
Change tab indent to space.
Implement batch log taking.