Added check for dry-run option