Dealing with non-fixed length lists of variables

Why not structure your data like this: