Added option to setup a plugin without running in infinite loop