Added --out option