Added a load file wrapper function