Rewrote search. Now uses argparse.