Do we need to escape `$name`? Maybe clean this line up by using `sprintf`?