Add checks for previous installation