Added logging infrastructure.