Updated badge script accordingly to backend changes