Removed duplicate plugins code