Stole Amy's parsing code
Arg parser implemented, without -b flag