DDF-376: Fixed out of memory issue; added examples