Init from old plugin code, need @paulv to check if things work
Making a few style changes to match normal Plugin SOP