Example of a clone id-managing system. click see inside to view code. Feel free to use in your own projects. (To clarify, you'll have to edit it a bit. Just the idea of making an id and running a block with that id is what you need from this.)