Added functions to load data from lua files.