Re-added logging capabilities.