Updated so that plugins can be initialized as a string or an array