Nit: put this in the beginning and then append the command from line 105? The logic of creating a string, adding to it using `+=`, and then adding a prefix using `insert` is a bit complicated.