Modernize - and fix some bugs in - the weather machine.