Updated sanity check on loops