Add more routine stuff to pg adapter