The economy is recovering after Pakistan secured loans from the International Monetary Fund that improved its financial conditions.