Move warn
Using set to improve warn performance