Fixed broken map tool caused by missing function definition