Add on onRPBeforeSync event handler