Now a static method for other plugins to use.