Added missing function from the previous commit.