Restrict by ids