Implemented the filter option for get_result