Updating plugin to new plugin structure.