Add hook for stat system function to allow dynamic loading