Issue #1: Loops broken