Changed the way plugin loads dependencies