Added sanity checks to installer