Adding missing function and adding implementations.