Copying Loop plugin correctly