Preparations for the filtering function creation