ADDED: Check for existing log.

Checks whether a log already exists, if so givews the new log a slightly
different name.