Changed some logging functionality.