Followed latest guidelines for initialising and using a plugin.