First pass at getting plugin to work