Modified idGen and connected it with add-guest