Added support for only logging once per second.