Adding conditions and actions for IAP