how about you figure out the id yourself? regepx through the current enclosing {} block and search for the highest number. That would make this snippets much more useful.