Added addException() and addRule()