Formatting and forgotten if statements for seds.