Remove almost all core code