Working version after instancing object.

A little sloppy, but it'll do for now.