Added check to make sure samples survive filtering