Needle Utility functions for the plugins