Throttle function now needs to be passed in