Removed redundant function readLog