Added debugging information to fetch script