Recognition API function implementation added