Fixed logging filename
Fixed bug with time