Extracted IP/Cookie functions to Helper class.