Made it possible to load from memory and stream.