Fixed variables and added sed string