Got basic plugin functionality working