The debate on how to best exterminate religion was argued among the Soviet leadership, until in the late 1920s and early 1930s, when it was resolved by Stalin who condemned the extremes of both sides, and Yaroslavsky followed suit. The do-nothing approach of the rightists who thought religion would die away naturally and the leftist approach to attack all forms of religion as class enemies were both condemned as deviations from the party line. Yaroslavsky argued against the leftists (who had earlier criticized him) that if religion was simply a class phenomenon there would be no need to combat it if a classless society was truly being produced. He affirmed that an all-sided attack on religion was needed, but did not subscribe to the leftist deviation that had been condemned.