South Africa 's former economic policy was fiscally conservative , focusing on controlling inflation , and attaining a budget surplus .