Changed logic for stackexchange data