Make the core into a plugin