Added -d option