Added a debouncer so that it makes less API calls.