Added the all-important -i to the most recent sed commands.