Rewrote how the weather types are determined.