Framework for loop support