Adding IPv6 support and a loop function to monitor in near (few seconds) real time