Just a suggestion. That could end up being a lot of variables , have you considered a hash file?