How does Loop work?