Changed HostToDevice so it uses ContainterFactory