Added functionality for ip ranges