FIx Exceptions; Realise processIPN function