Created three private methods, updating a list, record or map.