First setup of code for filters.