Added Check_plugin function