Added getForecast function