[Plugins] Added InitState to plugin's init() function