Sudan began exporting crude oil in the last quarter of 1999 and the economy boomed on the back of increases in oil production , high oil prices , and significant inflows of foreign direct investment until the second half of 2008 .