Integrated filter function after parsing in controller. TO TEST