Added wind direction function