To understand why some bureaucracies act the way they do, sociologists have developed a handful of models. With the exception of the ideal bureaucracy described by Max Weber, these models see bureaucracies as self-serving. Harnessing self-serving instincts to make the bureaucracy work the way it was intended is a constant task for elected officials. One of the ways elected officials have tried to grapple with this problem is by designing different types of bureaucracies with different functions. These types include cabinet departments, independent regulatory agencies, independent executive agencies, and government corporations.