Added socket notifications. Added first version of id generation