The hit song almost didn’t make the cut.