Loop now works, rename files