Get plugin working but not fully tested.