Added basic infrastructure for plugn