Do we need data in every line logged here? Could we log data before the loop here?