Fixing experience code and adding some debug code.