used argparse for infile and sleep time