Changed logic so if attribute 14 is absent code will assume gmail.