Made it compatible with the new AutoRemote Plugin API