Set CoreInstance upon loading plugin