Add usage and invalid host detection