Added logdir var