Rename setRule to addRule