Most of plugin done