Added ability to add multiple stubs at once. Stubs now have a unique id.