Improve and generalize the ignorelist functionality.