Added functionality for more complex logging messages.