How did Mikhail Gorbachev begin to change Soviet foreign policy?

How did Mikhail Gorbachev begin to change Soviet foreign policy?