Anything this big should probably go in its own file in `~/bin`. What do you think?