Update plugin initialisation to call the loader code directly