This code should be in the already installed check function.