Log: Added the originating thread id to each log entry.
Check: The provided arguments are now only evaluated once.