Reworked argparse to make it non-global