Added deleting peers and loop