Refactored code and added user error handling for loading lists.