Plugin loading working now, still needs improvements though, but the basic code is in place