Add required missing function into module legacy