Changed how pac.py handles transactions. Needs testing.