Add methods to the Plugin class.