Added --print-only option