Fixed compatibility issue. Added missing function parameter.