Added loops, client group info and host/guest functionality