Make it run as plugin