Added log timestamp and support for select periods