Added log time tracing, and removed file locking.