Data loading function

Commit data loading function for all scripts