Refactored method used to install modules and set defaults