Loop prevention