Added options to constructor, changed method for plugin.