[minor] Allow plugins to be specified through the contructor.