Initial commit. This was originally supposed to do one thing. Now it has to do several.