Added start of core plugin.
Added more debugging