Abstracted get_arg function, because you should never have two lines of identical code.
Removed old comment lines