Generalized code for Load to use io.Reader
Generalized code for Load to use io.Reader