The human brain is a complex organ comprised of various structures, each contributing uniquely to its overall function. Among these structures, some are primarily involved in higher cognitive processes, while others are essential for basic survival functions. Consider the role of the basal ganglia within this complicated framework. What is the most accurate description of the primary function of the basal ganglia?