Change getPlugins to definePlugins