Creating function to create function from filter
Creating object to govern index lookup for select