PGQ (skytools) wrapper written in C