Added debug flag to install and open