TGF functionality for Shark (depends on PR #211)