Add filter_output method