Handling ID management for object creation in standalone class.