Changes to sed code