Simplify plugin loop