Made the host lookup for qrcodes a little simpler