Adds `$filename` to spec