Added support for IP/mask lookup in modifies for add. Optimized queries. Some profiling stuff still remains