Changed log rate and refactored the init for loop