This line is way too long, and it's too difficult to understand what it's doing and why. Also, `underscore_cmd` is not a very descriptive name.