Added a member function to access the unique id for distributed storage.
Fixed base constructor usage.