Add insert_filter() function