Fixed bug where time was hard coded in the log function.