New implementation of plug to allow for storage of state in plugin to facilitate multiple instances