Add PGF output functionality