Use $host instead of $target.