I'm confused when the value of `exclude` set here is being used.  It appears to be overritten on line 47.