Attempt to make plugin compatible with both ST2 and ST3