Updated for changes to BasePlugin build method