added better error handling for when Indigo does not return appropriate data.