Fixed main so argparse happens first