Further refactoring. Load and Save into file functionality.