Instead of creating a temp variable here just return it like:
`return "", fmt.Errorf("loopCounter reached MAX: %v", loopCounter)`