Core execution layer and various fixes.