What were Stalins goals?

This question can be answered in any number of ways since Josef Stalin had a public leadership role in Russia after the Bolshevik revolution and then later in the Soviet Union. Since he had so many goals, the one that consumed him the most was how to gain and retain his personal power as the dictator of the USSR. This may be considered an over simplification, however, based on the question and the length of time that Stalin was in the public eye is the best single goal he had. To ensure that he would remain unchallenged in his role of dictator, Stalin had thousands of communists executed.