Added hostname verification.