Add method to hook in post query actions