Debug of core. Fixing syntax errors.