Added getSub method.
Merge branch 'testing'