That's also what I remember from my US history class at college. I remember the professor, who is an African American, said that the Civil War was triggered by issues with slavery but not fought with purpose to end slavery. It was fought to keep the union together.