Adding functionality for ip detection and checking