Added head filtering