Hacking together an initial plugin structure