Added LoadFile function