Modified retrieve weather function