Loop doesn't seem to function properly

Printable View