Got total and filter working