Replaced foreach with some for plugins. Cannot test for some reason.