Added logging capabilities.