Added a few utilities functions for reading logs