Maybe this should be a constant such as `var LOG_THROTTLE = 3000;` at the top of the file instead of the literal 3000 in 4 different places? That way if we need to change it, it becomes really easy.