Removed pointless if statement plus added part of the installed part.