Switched to concatenating arrays instead of appending single commands. Removed oldName property