Added isLocalHost method