Added support for loading from a Stream.