Added logdir.