A new investment code approved in December 2001 improved the opportunities for direct foreign investment .