Replaced optparse with argparse