Added data fetching functionality