Added old packages filter function