This loop condition needs to change. Fixes #5