I prefer to see as little as possible within the `if $0 == __FILE__` block.  If you can move what's in here to a top-level `main` method, that'd be perfect.