Add getParts() method for branch 2.0