Removed unused debounce function