Command economies have certain advantages over free market economies, especially in terms of the coordination of scarce resources at times of crisis, such as a war or following a natural disaster. Free markets also fail at times to allocate resources efficiently, so remedies often involve the allocation of resources by government to compensate for these failures.