Avoiding loops