Tidy up uneeded lines