Added if statements and conditions for acceptance

I added the if statements and list of accepted, rejected, secondary and
quarantine