Adding the weathervane code.