Moved stop_timestamp check into commit reading loop to avoid reading commits outside of period.