Resolved a bug where the plugin code relied on the  function to always exist inside  namespace.