Add callback function to fetch