Added a log function to throttle.