We may want to throttle this function if this has a performance impact.