Added code to handle storage of chained IPNs (in progress).