Simplified ptg and sptg implementations.
No more polling implemented in the client.