WIP: Set uid during object create

Still need to add some unit tests.

Thanks for the clarification.