Plugin now compiling and running, not all bugs fixed yet.