Removed unnecessary code of filtering.