Add IDs to blocks