Updated PKG plugin to new Plugin structure