Throttle/debounce your functions.