Changed loop=true to loop=loop