Among his better-known works during the 1970s were adaptations of Scott Joplin's ragtime music for the motion picture The Sting, including its theme song, "The Entertainer". It hit No. 1 on Billboard's Adult Contemporary chart and No. 3 on the Hot 100, selling nearly 2 million copies in the U.S. alone. He had great success in 1973, winning two Academy Awards for the title song and the score for the motion picture The Way We Were and an Academy Award for the adaptation score for The Sting. He won four Grammy Awards in 1974, two for "The Way We Were". In 1975, he wrote what, for its first 12 years, would be the original theme music for Good Morning America—it was built around four notes. He co-wrote "Nobody Does It Better" for The Spy Who Loved Me (1977) with his then-girlfriend Carole Bayer Sager, which would be nominated for an Oscar. In the 1980s, he had success with the scores for Ordinary People (1980) and Sophie's Choice (1982). He also received an Academy-Award nomination in 1986 for the film version of A Chorus Line. His last projects included The Informant! (2009), starring Matt Damon and directed by Steven Soderbergh. Prior to his death, he completed his first children's book Marvin Makes Music, which included the original music "The Music in My Mind" with words by Rupert Holmes, and the score for the HBO film Behind the Candelabra (2013), also directed by Soderbergh and starring Damon and Michael Douglas as Liberace.