Wrote the windspeed loop