Simplified loop logic