Refactored plist code to a separated object.