Added dataLoad sub-function for increased readability of load()