Preliminary implementation of filters in the compilation step