Remove unneeded code.
Give pg a default value in the constructor.
Add missing acknowledge method.