Update to correctly output chosen filetype.
Fix arg order.