Add logging. #227.