US crude oil futures for July delivery gained 7¢ on the New York market in June 22 trading as that month’s contract expired, and Brent crude oil for August delivery gained more than 30¢ on the London market after Greece unveiled economic reform measures.

European leaders gave Greece time to satisfy its creditors, and market observers said they were more optimistic Greece will strike a deal with its creditors.

Elsewhere, Europe reported positive economic indicators. France’s manufacturing sector expanded in June for the first time since April 2014, and Germany’s private sector grew at a faster rate in June than in it did in May.

“The data from France and Germany show there are flickers of life in the European economy, but strong supply is likely for some time to come, meaning subdued oil prices,” Michael Hewson, chief market analyst at CMC Markets, told Reuters.

China’s factory activity showed possible signs of stabilizing. The HSBC/Markit Flash China Manufacturing PMI edged up to 49.6 for June compared with 49.2 for May. Any number below 50 is considered to be a contraction vs. an expansion.

Separately, Iranian Foreign Minister Mohammad Javad Zarif said he believes chances are good that his nation will reach a final agreement with international leaders regarding Iran’s nuclear program either by a June 30 deadline or within a few days later.