Documenting loops