GetIP functions added