Better method for excluding numbers