Belarus has signed a deal to buy oil from Norway in a bid to diversify its energy imports away from Moscow.

Belarussian state oil company Belneftekhim said Monday it had bought 80,000 tonnes of crude oil — equivalent to more than half a million barrels — to be delivered by railway this week.

Russia, which supplies around 80% of Belarus’ energy, cut off oil shipments to its neighbor for three days earlier this month amid a price dispute.

Moscow has vowed to stop supplying cut-price oil to Minsk if the two countries cannot agree measures for deeper economic integration. However, amid protests in Belarus, Russian President Vladimir Putin and his Belarussian counterpart, Alexander Lukashenko, failed on two occasions in December to strike an agreement to forge closer ties between the two countries.

Negotiations between state-backed energy companies over a deal for 2020 energy supplies also broke down, prompting Russia to suspend oil shipments on Jan 1., and only partially restore them three days later.