Removed debug code
Added logic for switching between enterprise and open source