The Loops framework