Take a look at LSATs it's what lightning labs uses for loop