Updated for log levels