Remove unnessecery lines.